package com.tanger.permission.entity.permission;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.google.common.base.MoreObjects;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;


/**
 * @Description 角色权限实体类
 * @Author Hchenbin
 * @Date 2022/6/27 12:12
 * @Version 1.0
 */
@Data
@ApiModel(value = "EntityRolePermission",description = "角色权限实体类")
@TableName("brt_base_role_permission")
public class EntityRolePermission implements Serializable {

	@ApiModelProperty(value = "ID")
	@TableId(value = "ID",type = IdType.AUTO)
	private Long id;
	@ApiModelProperty(value = "角色ID")
	private Long roleId;
	@ApiModelProperty(value = "权限ID")
	private Long permissionId;

	@Override
	public String toString() {
		return MoreObjects.toStringHelper(this)
			.add("id", id)
			.add("roleId", roleId)
			.add("permissionId", permissionId)
			.toString();
	}
}
